/**************************************************************************
 * $RCSfile: $  $Revision: $  $Date:  $
 *
 * $Log: $
 **************************************************************************/
/*
 * Copyright 2008 gxlu, Inc. All rights reserved.
 * File name : Util.java
 * Created on : Dec 8, 2013 6:17:55 PM
 * Creator : freeyfh
 */
package com.simplefan.common.util;

import java.util.List;
import java.util.Map;

/**
 * <pre>
 * Description : TODO
 * @author freeyfh
 * </pre>
 */
public class Util {
  public static boolean isEmpty(String[] strArray){
    if(strArray==null || strArray.length==0) return true;
    return false;
  }
  
  public static boolean isNoEmpty(String[] strArray){
    return !isEmpty(strArray);
  } 
  
  public static boolean isEmpty(Map map){
    if(map==null || map.isEmpty()) return true;
    return false;
  }
  
  public static boolean isNoEmpty(Map map){
    return !isEmpty(map);
  }
  
  public static boolean isEmpty(List list){
    if(list==null || list.isEmpty()) return true;
    return false;
  }
  
  public static boolean isNoEmpty(List list){
    return !isEmpty(list);
  }
  
  public static String[] split(String str,String sign){
    if(str==null) return null;
    return str.split(sign);
  }
  
}

